async function test() {
    try {
        const v = await getPromise();
        return v;
    } catch (e) {
        throw e;
    }
}

function getPromise() {
    return new Promise((reslove, reject) => {
        setTimeout(() => {
            reject("失败了")
        })
    }, 1000)
}

function doStart() {
    const promise = test();
    promise.catch(e => {
        console.log("E = ",e);
    })
}

doStart()